import type { ProfileData, UpdateProfileParams } from '@/types/member'
import { http } from '@/utils/http'

// 获取个人信息
export function getMemberInfo() {
  return http<ProfileData>({
    url: '/member/profile',
    method: 'GET',
  })
}

// 修改个人信息
export function updateMemberInfo(data: UpdateProfileParams) {
  return http<ProfileData>({
    url: '/member/profile',
    method: 'PUT',
    data,
  })
}
